Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 4.2.x] Attachments API use filename from Content-Disposition before url #8554

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

ianwallen
Copy link
Contributor

Backport #8470
Authored by: @tylerjmchugh

[Backport 4.2.x] Attachments API use filename from Content-Disposition before urll (#8470)

  • Update spring doc consumes and produces

  • Update putResource logic to get filename from contentDisposition header before using url

  • retrigger checks

  • retrigger checks

  • Remove incorrect consumes

  • Update getFilenameFromHeader to return null on exception

  • Update getFilenameFromHeader to return null on exception (including fileUrl.openConnection)

…n before url (geonetwork#8470)

* Update spring doc consumes and produces

* Update putResource logic to get filename from contentDisposition header before using url

* retrigger checks

* retrigger checks

* Remove incorrect consumes

* Update getFilenameFromHeader to return null on exception

* Update getFilenameFromHeader to return null on exception (including fileUrl.openConnection)
@ianwallen ianwallen added this to the 4.2.12 milestone Dec 10, 2024
@ianwallen ianwallen merged commit 0217f74 into geonetwork:4.2.x Dec 10, 2024
6 checks passed
@ianwallen ianwallen deleted the backport-8470-to-4.2.x branch December 10, 2024 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants